import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home/index.vue";

Vue.use(Router);

export default new Router({
  mode: "hash",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "Index",
      redirect: { name: "Home" }
    },
    {
      path: "/home",
      name: "Home",
      component: Home
    },
    {
      path: "/login",
      name: "Login",
      component: () => import("@/views/Login/index.vue")
    },
    {
      path: "/log",
      name: "Log",
      component: () => import("@/views/Log/index.vue")
    }
  ]
});
